<div class="box">
	<div class="title"><h5>Credit Limit Sales</h5></div>
<h2><?php echo $territory[0]['territory_name'] ?></h2>
<table class="item-list">
	<thead>
		<tr>
			<th>No</th>
			<th>User ID</th>
			<th>User Name</th>
			<th>User Role</th>
			<th>Nilai Scan In</th>
			<th>Limit Scan In</th>
			<th>Action</th>
		</tr>
	</thead>
	<tbody>
	</tbody>
	<?php 
		// print_r($sales);
		foreach ($sales as $s) {
			echo '<tr><td>'.$s->nomor.'</td>'; //20120719 ayu 
			echo '<td>'.$s->user_id.'</td>';
			echo '<td>'.$s->user_name.'</td>';
			echo '<td>'.$s->user_group_name.'</td>';
			echo '<td>Rp. '.number_format($s->current_limit, '2', '.', ',').'</td>';
			echo '<td>Rp. '.number_format($s->limit_allowed, '2', '.', ',').'</td>';
			/*echo '<td><a href="credit_limit/'.$s->user_id.'">Edit </a> </td></tr>';*/
			echo '<td><a href="credit_limit/'.$s->custom_user_id.'">Edit </a> </td></tr>'; //20120719 ayu 
		}

	?>
</table>
</div>